<%@page import="com.probiz.estore.product.service.ProductManager"%>
<%@ include file="/common/taglibs.jsp"%>
<title><fmt:message key="mainMenu.title" /></title>
	
<%
org.springframework.context.ApplicationContext ctx = org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(application);
ProductManager productManager = (ProductManager)ctx.getBean("productManager");

//商品总数，上架商品总数
request.setAttribute("productTotal",productManager.countProductTotal());
request.setAttribute("shelvedProductTotal",productManager.countShelvedProductTotal());
%>
		<div class="clearfix">	
		<div class="wrap_01">
			<div class="ellipse_out2">
				<div class="ellipse_center2">
					<div class="ellipse_in2">
						<div class="index_box">
							<div class="top"><fmt:message key="menu.main.storeMessages"/></div>
							<div class="content">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t1">
									<authorize:authorizeResource resourceString="/product/prod.html">
									<tr>
											<td><b class="ico goods"></b><fmt:message key="menu.main.productNum"/></td>
											<td><span class="num">${productTotal} <fmt:message key="siteMessage.unit.3"/></span></td>
									</tr>
									<tr>
											<td><b class="ico shop_goods"></b><fmt:message key="menu.main.shelvesProdNum"/></td>
											<td><span class="num">${shelvedProductTotal} <fmt:message key="siteMessage.unit.3"/></span></td>
									</tr>
									</authorize:authorizeResource>
							</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			</div>
			<div class="wrap_02">
			<div class="ellipse_out3">
				<div class="ellipse_center3">
					<div class="ellipse_in3">
						<div class="index_box2">
							<h3><fmt:message key="menu.main.quickEntrance"/></h3>
							<ul class="items clearfix">
								<authorize:authorizeResource resourceString="/product/prod.html">
								<li><b class="ico prod"></b><a href="${ctxPath}/product/prod.html"><fmt:message key="menu.productManagement"/></a></li>
								</authorize:authorizeResource>
								<authorize:authorizeResource resourceString="/content/content.html">
								<li><b class="ico content"></b><a href="${ctxPath}/content/content.html"><fmt:message key="menu.contentManagement"/></a></li>
								</authorize:authorizeResource>
							</ul>
							<h3><fmt:message key="menu.main.orderTrend"/></h3>
							<div class="msline">
									<span id="chartdiv"> ... </span>
								    <script type="text/javascript">
								    	$j(document).ready(function(){
										   var chartReport = new FusionCharts("${ctxPath}/fusionCharts/FCF_MSLine.swf", "chartReport", "700", "350");
										   var url1 = "${ctxPath}/report/reportData/blank.html?reportName=dashboaderReport";
										   chartReport.setDataURL(url1);
										   chartReport.render("chartdiv");
								    	});
									</script>
							</div>
						</div>
					</div>
				</div>
			</div>
			</div>
		</div>
		<%-- 
		<div class="wrap_03">
			<div class="index_box3">
				<div class="top">常见问题</div>
				<div class="content">
					<ul class="clearfix">
						<li><a href="#">如何录入商品信息，价格怎么录入？</a></li>
						<li><a href="#">如何录入商品信息，价格怎么录入？</a></li>
						<li><a href="#">订单处理是按什么样的流程？</a></li>
						<li><a href="#">订单处理是按什么样的流程？</a></li>
						<li><a href="#">网上促销有什么好的方式吗，和传统促销有什么大的区别？</a></li>
						<li><a href="#">网上促销有什么好的方式吗，和传统促销有什么大的区别？</a></li>
						<li><a href="#">如何录入商品信息，价格怎么录入？</a></li>
						<li><a href="#">如何录入商品信息，价格怎么录入？</a></li>
					</ul>
				</div>
			</div>
		</div>
		--%>
<script type="text/javascript">
	//自动弹出向导
	<c:if test="${not needResetPwd}">
		<c:if test="${empty stepNum}">
			<c:if test="${applicationScope.appConfig.isShowWizard}">
				$j(window).load(function(){
					showWizardDialog();
				});
			</c:if>
		</c:if>
	</c:if>
</script>